package com.gary.core.orm.utils;

import java.util.ArrayList;
import java.util.List;


public class PageList {
    
    public static final Integer PAGESIZE = 20;

	private int pageOffset;

    private Integer total = new Integer(0);

	@SuppressWarnings("unchecked")
	public PageList(Integer total,List list, int pageOffset) {
        this.list = list;
        this.total = total;
        this.pageOffset = pageOffset;
    }
	
	@SuppressWarnings("unchecked")
	public PageList(int total,List list) {
        this.list = list;
        this.total = total;
    }

	@SuppressWarnings("unchecked")
	private List list = new ArrayList();

	@SuppressWarnings("unchecked")
	public List getList() {
        return list;
    }

	@SuppressWarnings("unchecked")
	public void setList(List list) {
        this.list = list;
    }

    public int getPageOffset() {
        return pageOffset;
    }

    public void setPageOffset(int pageOffset) {
        this.pageOffset = pageOffset;
    }

    public Integer getTotal() {
        return total;
    }

    public void setTotal(Integer total) {
        this.total = total;
    }
}
